Xen/IA64 changes memory attributes of tlb into WB to prevent domU from
uncachable access. But NaTPage attribute need not to be changed to WB.
Linux uses NaTPage attributes.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
`
* Don't let non-dom0 domains map uncached addresses. This can
* happen when domU tries to touch i/o port space. Also prevents
* possible address aliasing issues.
+ * WB => WB
+ * UC, UCE, WC => WB
+ * NaTPage => NaTPage
*/
- if (d != dom0)
+ if (d != dom0 && (pteval2 & _PAGE_MA_MASK) != _PAGE_MA_NAT)
pteval2 &= ~_PAGE_MA_MASK;
return pteval2;